using UnityEngine;
using System.Collections;

public class InteractButton : InteractObject {

    override public void Interact(MonoBehaviour sender)
    {
        if (Input.GetKeyDown(interactButton))
        {
            GameObject[] spheres = GameObject.FindGameObjectsWithTag("FlySphere");

            Vector3 power = Vector3.up * 1000;

            foreach (GameObject sphere in spheres)
            {
                sphere.transform.rigidbody.AddForce(power);
            }
        }
    }
}
